<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jidu_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jidu_price" data-rule="required" class="form-control" step="0.01" name="row[jidu_price]" type="number" value="{$row.jidu_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bannian_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bannian_price" data-rule="required" class="form-control" step="0.01" name="row[bannian_price]" type="number" value="{$row.bannian_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yinian_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yinian_price" class="form-control" step="0.01" name="row[yinian_price]" type="number" value="{$row.yinian_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zhuguandanwei')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zhuguandanwei" class="form-control" name="row[zhuguandanwei]" type="text" value="{$row.zhuguandanwei|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zhubandanwei')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zhubandanwei" class="form-control" name="row[zhubandanwei]" type="text" value="{$row.zhubandanwei|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xiebandanwei')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xiebandanwei" class="form-control" name="row[xiebandanwei]" type="text" value="{$row.xiebandanwei|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Faxingzhouqi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-faxingzhouqi" class="form-control" name="row[faxingzhouqi]" type="text" value="{$row.faxingzhouqi|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Guoneikanhao')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guoneikanhao" class="form-control" name="row[guoneikanhao]" type="text" value="{$row.guoneikanhao|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Guojikanhao')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guojikanhao" class="form-control" name="row[guojikanhao]" type="text" value="{$row.guojikanhao|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content_file')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-content_file" class="form-control" size="50" name="row[content_file]" type="text" value="{$row.content_file|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-content_file" class="btn btn-danger faupload" data-input-id="c-content_file" data-multiple="false" data-preview-id="p-content_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-content_file" class="btn btn-primary fachoose" data-input-id="c-content_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-content_file"></span>
            </div>
            <p>请上传pdf、word文档</p>
            <ul class="row list-inline faupload-preview" id="p-content_file"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Show_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-show_switch" name="row[show_switch]" type="hidden" value="{$row.show_switch}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-show_switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.show_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
